package com.codepilot.server.mapper;

import java.util.List;

import com.codepilot.server.model.entity.Problem;
import org.apache.ibatis.annotations.Mapper;
import com.codepilot.server.model.entity.LeecodeProblem;
import com.codepilot.server.model.entity.OpenjudgeProblem;

@Mapper
public interface ProblemMapper {
    
    List<LeecodeProblem> getLeecodeProblems(int offset, int limit);

    LeecodeProblem getLeecodeProblemByTitle(String title);

    LeecodeProblem getLeecodeProblemById(int problemId);

    List<LeecodeProblem> getLeecodeProblemsByTitle(String title, int size);

    List<OpenjudgeProblem> getOpenjudgeProblems(int offset, int limit);

    OpenjudgeProblem getOpenjudgeProblemByTitle(String title);

    OpenjudgeProblem getOpenjudgeProblemById(int problemId);

    List<OpenjudgeProblem> getOpenjudgeProblemsByTitle(String title, int size);

    Integer getProblemUid(String source, int subId);

    Problem getProblemByUid(int uid);

}
